package com.company.oa.hr.dto.employee;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class ContractDTO {
    private Long id;
    
    @NotNull(message = "员工ID不能为空")
    private Long employeeId;
    
    @NotBlank(message = "合同编号不能为空")
    private String contractNo;
    
    @NotNull(message = "合同类型不能为空")
    private Integer contractType;
    
    @NotNull(message = "开始日期不能为空")
    private Date startDate;
    
    private Date endDate;
    
    private String attachmentPath;
} 